package com.example.b_308.myapplication.controller;

import com.example.b_308.myapplication.view.main.MessageBeen;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by xxtves on 2017/11/23.
 */

public class MessageController {
    private IMessageView iMessageView;

    public MessageController(IMessageView iMessageView) {
        this.iMessageView = iMessageView;
    }

    public void getList(){
        iMessageView.onRrquestListSuccess(paraseList());

    }

    private List<MessageBeen> paraseList(){
            List<MessageBeen>list =new ArrayList();
            MessageBeen messageBeen;
//            for (int i = 0; i<10; i++){
//                messageBeen =new MessageBeen(new Staff("名字"+i),"测试文本","刚刚");
//                list.add(messageBeen);
            return list;

    }
}
